package com.cdu.mapper;

import com.cdu.pojo.entity.Address;
import com.cdu.pojo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int insert(User user);

    User getUserByUsername(String username);

    int updateAvtor(User user);

    int updatePwd(User user);

    int updateUserInfo(User user);

    List<Address> getUserAddress(@Param("userId") Integer id);
}
